package demo015.config;
import demo015.controller.controller1;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext a = new AnnotationConfigApplicationContext(springconfig.class);
        controller1 bean = a.getBean(controller1.class);
        bean.az();
    }
}
